
package com.ruoyi.client.pojo.form;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

/**
 * 用户更改密码
 */
@Data
public class UserUpdatePwdForm implements Serializable {
    @ApiModelProperty(value = "用户id", position = 1, required = true)
    private Long id;

    @ApiModelProperty(value = "原密码", position = 3, required = true)
    @NotEmpty(message = "原密码不能为空")
    private String passwordOld;

    @ApiModelProperty(value = "新密码", position = 4, required = true)
    @NotEmpty(message = "新密码不能为空")
    private String passwordNew;
}
